package com.bailian.spring.ioc.basic_factorybean.bean;

/**
 * @author gaoxu
 * date: Created on 2021/11/1 下午1:34
 */
public abstract class Toy {
    private String name;

    public Toy(String name) {
        System.out.println("初始化Toy:name="+name);
        this.name = name;
    }

    @Override
    public String toString() {
        return "Toy{" +
                "name='" + name + '\'' +
                '}';
    }
}
